<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>

    <script>
        function test(a){
            a = a+10
            return a
        }
        
        var a =10
        test(a)
        console.log(a)
    </script>
</head>
<body>
    
</body>
</html>